package com.spark.searchapi.feign;

import com.spark.basecommon.api.R;
import com.spark.searchapi.feign.impl.PmsProductBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author fuqiang
 * @Description 描述
 * @Date 2020/10/31
 */
@FeignClient(value = "search-center" ,fallbackFactory = PmsProductBack.class)
public interface PmsProductFeign {
    /**
     * 更新
     * @param id
     * @return
     */
    @PostMapping("product/updateProduct")
    R<Boolean> updateProduct(@RequestBody Long id);
}
